#ifndef TESTTEXTEDIT_H
#define TESTTEXTEDIT_H

#include <QWidget>
#include<QMainWindow>
#include<QTextEdit>

class TestTextEdit : public QMainWindow
{
    Q_OBJECT
public:
    explicit TestTextEdit(QWidget *parent = nullptr);

signals:
private slots:
    void mergeFormat(const QTextCharFormat &format);
    void setBold();
    void setItalic();
    void setUnderline();
    void setTextFont(const QFont &f);
    void setFontSize(int size);
    void setTextColor();
    void addLog(const QString &message, const QColor &color = Qt::black);

    void addTestLog();

private:
    QTextEdit *textEdit_2;
    QToolBar *formatBar;
    QTextEdit *logEdit;
};

#endif // TESTTEXTEDIT_H
